<div id="accordion">
		<h3 class="slot_top"><a href="#">Database delle costruzioni</a></h3>
		<div> <!-- Accordion slot #top -->
			<div id="list_container">
				<table id="lista">
					<thead>
					<tr>
						<td>Id</td>
						<td>Costruzione</td>
						<td>Azione</td>
					</tr>
					</thead>
					<tbody>
					<?php foreach ($this->constructions as $constr): ?>
					<tr>
						<td class="construction_id">
						<?php echo $constr['id']; ?>
						</td>
						<td class="construction_name">
						<?php echo $constr['name']; ?>
						</td>
						<td class="construction_action">
						<a href="javascript:openConstructionDetails(<?php echo $constr['id'] ?>);"><img src="/images/icon_edit.gif" /></a>
						</td>
					</tr>
					<?php endforeach; ?>
					</tbody>
				</table>
			</div>		
		</div>
		<h3 class="slot_bottom"><a href="#">Dettaglio della costruzione</a></h3>
		<div>  <!-- Accordion slot #bottom -->
			<?php 
			echo $this->detailForm; 
			?>
		</div> <!-- /Accordion slot #bottom -->
</div>


<!--  Corpo della finestra di dialog -->
<!--  -->	
<div id="dialog-form" title="Cerca il materiale da inserire">
	<form>
	<fieldset>
		<label for="categoria">Scegli la categoria</label>
		<select name="categoria" id="dialog_category_list" class="text ui-widget-content ui-corner-all" >
		</select>
		<br/>
		<label for="materiale">Seleziona il materiale</label>
		<select name="materiale" id="dialog_material_list" value="" class="text ui-widget-content ui-corner-all" >
		</select>
	</fieldset>
	<input type="hidden" id="name_field" value="" />
	<input type="hidden" id="id_field" value="" />
	</form>
</div>

<!--  OVERLAYS / CONSTRUCTIONS -->

<div id="X-browse-categories" style="display: none;" title="Seleziona una categoria">
	<p>&nbsp</p>
	<select id="construction_categories" name="construction_categories">
		<option value="0">Non categorizzato</option>
		<?php foreach ($this->construction_categories as $cat): ?>
		<option value="<?=$cat['id']; ?>"><?=$cat['name']; ?></option>
		<?php endforeach; ?>
	</select>
</div>
